import { createSlice } from '@reduxjs/toolkit'

export const goodSlice = createSlice({
  name: 'goods',
  initialState:{
    goodList:[
      {
        type:"果茶",
        cars:[
          {
            name:"果茶1",
            price:"5",
            num:0,
            TID:"0"
          },
          {
            name:"果茶2",
            price:"10",
            num:0,
            TID:"1"
          },
          {
            name:"果茶3",
            price:"15",
            num:0,
            TID:"2"
          },
        ]
      },
      {
        type:"咖啡",
        cars:[
          {
            name:"咖啡1",
            price:"5",
            num:0,
            TID:"3"
          },
          {
            name:"咖啡2",
            price:"10",
            num:0,
            TID:"4"
          },
          {
            name:"咖啡3",
            price:"15",
            num:0,
            TID:"5"
          },
        ]
      },
      {
        type:"奶茶",
        cars:[
          {
            name:"奶茶1",
            price:"5",
            num:0,
            TID:"0"
          },
          {
            name:"奶茶2",
            price:"10",
            num:0,
            TID:"1"
          },
          {
            name:"奶茶3",
            price:"15",
            num:0,
            TID:"2"
          },
        ]
      },
    ]
  },
  reducers: {
   
  },
})

// Action creators are generated for each case reducer function
export const {  } = goodSlice.actions

export default goodSlice.reducer